/**
 * @Author: wzx
 * @Description:
 * @Version: 1.0.0
 * @Date: 2021/5/31 上午6:30
 *@Copyright: MIN-Group；国家重大科技基础设施——未来网络北大实验室；深圳市信息论与未来网络重点实验室
 */

package testinterceptor

import (
	"context"
	"fmt"
	"vpn-management-server/network"
)

func Before(ctx context.Context, request *network.NetRequest, response *network.NetResponse) bool{
	fmt.Println("before")
	return true
}

func After(ctx context.Context, request *network.NetRequest, response *network.NetResponse) {
	fmt.Println(request.GetAttribute("test"))
	fmt.Println("after")
}